<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
<?=SITE_NAME?>
_
<?=$scfg['base']['title']?>
</title>
<meta name="keywords" content="<?=$scfg['base']['keywords']?>" />
<meta name="description" content="<?=$scfg['base']['description']?>" />
<script type="text/javascript">
try{document.domain="<?=SITE_DOMAIN?>";}catch (e){};
var __scfg__ = {
	staticUrl:"<?=surl::get("static");?>",
	thisPage:"search"
};
</script>
<script type="text/javascript" src="<?=surl::get("static");?>www.js"></script>
<script type="text/javascript" src="<?=surl::get('my')?>area.js.php"></script>
<script type="text/javascript">
function Init_upload()
{
	var k,d,t,CurSelect= document.compareForm.elements['gLocation'];
	for(k in areas)
	{
		d = areas[k][0];
		SelectOption = new Option(d[0],d[1]);
		CurSelect.options[CurSelect.options.length] = SelectOption;
	}
	SelectOption = new Option("其他","other");
	CurSelect.options[CurSelect.options.length] = SelectOption;
}
$(function(){
	Init_upload();
	var gLocation = <?=json::encode($gLocation)?>;
	gLocation && (document.compareForm.elements['gLocation'].value = gLocation);
})
</script>
</head>
<body>
<? tpl::import('header.tpl.php');?>
<div id="Content">
  <div style="margin:3px;">
  	您正在浏览的商品分类是：<a href="<?=surl::set(array("c1id"=>"","c2id"=>"","c3id"=>"","c4id"=>"","page"=>""))?>">所有分类</a>
	<? if($catIdArr["c1id"]){?>
    >>  <a href="<?=surl::set(array("c2id"=>"","c3id"=>"","c4id"=>"","page"=>""))?>"><?=$catNameArr["c1id"]?></a> 
		<? if($catIdArr["c2id"]){?>
        >>  <a href="<?=surl::set(array("c3id"=>"","c4id"=>"","page"=>""))?>"><?=$catNameArr["c2id"]?></a> 
			<? if($catIdArr["c3id"]){?>
            >>  <a href="<?=surl::set(array("c4id"=>"","page"=>""))?>"><?=$catNameArr["c3id"]?></a> 
				<? if($catIdArr["c4id"]){?>
                >>  <b><?=$catNameArr["c4id"]?></b> 
                <? }
			 }
		 }
	}?>
  </div>
  <div id="ListSellerRecommended">
    <div style="margin:0;padding:3px 0; float:right;" class="TabBarLevel1">
    <? if($q){?>
    	&nbsp;&nbsp;在当前分类中搜索“<span style="color:#FF6600; font-weight:bold;">&nbsp;<?=$q?>&nbsp;</span> ”共找到<b><?=((int)$rs["pg"]["all"])?></b>条结果：
    <? }?>
    </div>
  	<ul class="TabBarLevel1" style="margin-right:0px;">
      <li <?=($good==0?'class="Selected"':'')?>> <a href="<?=surl::set(array("good"=>0,"page"=>""))?>">所有宝贝</a> </li>
      <li <?=($good==1?'class="Selected"':'')?>> <a href="<?=surl::set(array("good"=>1,"page"=>""))?>">橱窗推荐</a> </li>    
    </ul>   
    <div class="HackBox"></div>
  </div>
  <!--end div#ListSellerRecommended-->
  
  <!-- 宝贝列表 -->
  <form method="get" name="compareForm" target="_blank">   
    <div id="ItemList">
      <div id="ListView">
        <div id="ListViewTop">
          <div class="Info">
            <div class="Name">宝贝名称/卖家</div>
          </div>
          <div class="TimeLeft"> <a href="<?=surl::set(array("order"=>($order == "asc"?"":"asc")))?>" title="按时间排列" class="ABTestA" >剩余时间</a> </div>
          <div class="Place">
            <select name="gLocation" onchange="document.location.href = url.en({gLocation:this.value},'<?=surl::set(array("gLocation"=>"","page"=>""))?>');">
              <option value="" selected>所有地区</option>
            </select>
          </div>
          <!--div#Shipping-->
          <div class="Shipping">运费</div>
          <!--div#Price-->
          <div class="Price">
            <input type="button" value="价格排序" onclick="document.location.href = '<?=surl::set(array("order"=>($order == "asc_p"?"desc_p":"asc_p")))?>';" class="ABTestB" style="width:60px;height:20px;" />
          </div>
          <div class="Legend">&nbsp;</div>
        </div>
        <!--div#ListViewTop-->
        <? foreach($rs["rs"] as &$v)
		   {
                $url 	 = pct::url($v['gYmd'],$v['gid']);
				$url_fav = pct::url_fav($v['gYmd'],$v['gid']);
                $img 	 = pct::img($v['gYmd'],$v['gid']);
                $cSellType  = $v['cSellType'] == 1?"一口价":"拍卖";
            ?>
        <div class="Item">
            <div class="Pic" src="<?=$img[0]?>" href="<?=$url?>"></div>
            <div class="Info">
                <div class="Name"> <a href="<?=$url?>"  target="_blank" class="EventCanSelect"><?=$v['sTitle']?></a> </div>
                <div class="Seller"> 
                    卖家：<a href="<?=shop::url($v["urs"],array("act"=>"info"))?>" target="_blank"><?=$v['urs']?></a>
                  <a class="AddToFav" href="<?=$url_fav?>" target="IGact">收藏</a>
              </div>
            </div>
            <div class="TimeLeft"><i>剩余</i><?=$v['time']?></div>
            <div class="Place"><?=$v['area']?></div>
            <div class="Shipping"> <?=$v['postage']?> </div>
            <div class="Price"><?=$cSellType?><br />
            <span><?=$v['dwPrice_bin']?></span><br />
            <em> </em> </div>
            <div class="Legend"></div>
        </div>
        <div class="HackBox"></div>
        <? }?>
        <div id="ListViewBottom">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>&nbsp;&nbsp;<?=$rs["pg"]["str"]?></td>
            <td align="right"><ul class="page"><?=implode("",$rs["pg"]["np"])?></ul></td>
          </tr>
        </table>
        </div>
        </div>
      </div>
  </form>
</div>
<script type="text/javascript">
$("div.Pic").each(function(){Player.image(this,75);});
</script>
<!--end  div#SideBarBox-->
</div>
<div class="HackBox"></div>
<? tpl::import('foot.all.tpl.php');?>
</body>
</html>
